enum MainGameControlEvent {
    SetScore = 1,
}

class MainGameControl extends core.BaseController {
    private _view: ui.MainGame
    constructor() {
        super()
        this._view = new ui.MainGame(this, LayerManager.UI_Game)

        this.registerFunc(MainGameControlEvent.SetScore, this.onSetScore, this)
    }

    private onSetScore(score: number): void {
        this._view.SetScoreLText(score.toString())
    }
}